﻿using System;
using System.Collections.Generic;

namespace RexToy.Cassandra.Meta
{
    public class SchemaVersion
    {
        private Dictionary<string, List<string>> _v;
        internal SchemaVersion(Dictionary<string, List<string>> v)
        {
            _v = v;
        }

        public IEnumerable<string> Versions
        {
            get { return _v.Keys; }
        }

        public IEnumerable<string> HostList(string version)
        {
            return _v[version];
        }
    }
}
